package cool.tsy.emos.wx.db.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @author: hongxuan.wang
 * @date: Created in 2021/11/30 19:25
 * @description: message_ref(Mongodb)
 * @mail: 1443424326@qq.com
 */
@Data
@Document(collection = "message_ref")
public class MessageRef implements Serializable {

    private static final long serialVersionUID = 736199637324440345L;

    @Id
    private String _id;

    @Indexed
    private String messageId;

    @Indexed
    private Integer receiverId;

    @Indexed
    private Boolean readFlag;

    @Indexed
    private Boolean lastFlag;
}
